package com.rt.cms.data.entity;

import com.rt.cms.common.utils.DateUtils;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2018/5/22.
 */
public class CompanyInfoBean {

    private int id;
    private String comName;  //��ҵ����
    private String businessCode; //Ӫҵִ��
    private int comId;  //��ҵid(����)
    private int comType;  //���  1������ҵ2һ����ҵ3����4������ҵ5��������
    private int status;  //
    private int supportId;  //������ҵid
    private Date inputTime;  //¼��ʱ��
    private BigDecimal creditLine;  //���Ŷ��
    private int creditLimit;  //��������
    private Date activeTime;  //����ʱ��
    private Date upTime;   //����ʱ��
    private int dormant;   //�Ƿ�����
    private int operateId;
    private int businessType;

    private String statusSTR;

    private String comTypeSTR;

    private String businessTypeSTR;

    private String inputTimeSTR;

    private List<TbCompayUploadInfo> tbCompayUploadInfos; //ͼƬ��Ϣ�б�

    public String getInputTimeSTR() {
        inputTimeSTR =  DateUtils.formatDateTime(inputTime);
        return inputTimeSTR;
    }

    public String getBusinessTypeSTR() {
        if (businessType == 1) {
            return "供应链融资";
        } else if (businessType == 2) {
            return "企业经营贷";
        } else if (businessType == 3) {
            return "个人借款";
        }
        return businessTypeSTR;
    }

    public String getStatusSTR() {
        if (status == 1) {
            return "待尽调";
        } else if (status == 2) {
            return "待部门审核";
        } else if (status == 3) {
            return "待风控审核";
        } else if (status == 4) {
            return "待上线";
        } else if (status == 5) {
            return "贷后管理";
        } else if (status == 6) {
            return "存档";
        }
        return statusSTR;
    }

    public String getComTypeSTR() {
        if (comType == 1) {
            return "核心企业";
        } else if (comType == 2) {
            return "一般企业";
        } else if (comType == 3) {
            return "个人";
        }else if (comType == 4) {
            return "担保企业";
        }else if (comType == 5){
            return "担保个人";
        }else if(comType ==0){
            return "其他";
        }
        return comTypeSTR;
    }

    public int getOperateId() {
        return operateId;
    }

    public int getBusinessType() {
        return businessType;
    }

    public void setBusinessType(int businessType) {
        this.businessType = businessType;
    }

    public void setOperateId(int operateId) {
        this.operateId = operateId;
    }

    //private List<CompanyInfoBean> supportIdList;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    public int getComId() {
        return comId;
    }

    public void setComId(int comId) {
        this.comId = comId;
    }

    public int getComType() {
        return comType;
    }

    public void setComType(int comType) {
        this.comType = comType;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getSupportId() {
        return supportId;
    }

    public void setSupportId(int supportId) {
        this.supportId = supportId;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public BigDecimal getCreditLine() {
        return creditLine;
    }

    public void setCreditLine(BigDecimal creditLine) {
        this.creditLine = creditLine;
    }

    public int getCreditLimit() {
        return creditLimit;
    }

    public void setCreditLimit(int creditLimit) {
        this.creditLimit = creditLimit;
    }

    public Date getActiveTime() {
        return activeTime;
    }

    public void setActiveTime(Date activeTime) {
        this.activeTime = activeTime;
    }

    public Date getUpTime() {
        return upTime;
    }

    public void setUpTime(Date upTime) {
        this.upTime = upTime;
    }

    public int getDormant() {
        return dormant;
    }

    public void setDormant(int dormant) {
        this.dormant = dormant;
    }

    public List<TbCompayUploadInfo> getTbCompayUploadInfos() {
        return tbCompayUploadInfos;
    }

    public void setTbCompayUploadInfos(List<TbCompayUploadInfo> tbCompayUploadInfos) {
        this.tbCompayUploadInfos = tbCompayUploadInfos;
    }
}
